﻿using UnityEngine;
using System.Collections;
using System.Extension;
[ExecuteInEditMode]
public class SynchronizeBehaviour : MonoBehaviour 
{

    public virtual void OnEnable()
    {
        this.ForEachMemberAttribute<Synchronise>((m, s) => s.Load(this, m));
    }

    public virtual void OnDisable()
    {
        this.ForEachMemberAttribute<Synchronise>((m, s) => s.Catch(this, m));
    }

}
